<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:79:"E:\web\project\baojia\wwwww\public/../application/admin\view\bankuai\jishu.html";i:1537970166;s:70:"E:\web\project\baojia\wwwww\application\admin\view\layout\default.html";i:1529292885;s:67:"E:\web\project\baojia\wwwww\application\admin\view\common\meta.html";i:1535990037;s:69:"E:\web\project\baojia\wwwww\application\admin\view\common\script.html";i:1533222223;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/public/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/public/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<link href="/public/assets/js/uploadify/uploadify.css" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/public/assets/js/html5shiv.js"></script>
  <script src="/public/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
<script src="/public/assets/libs/jquery/dist/jquery.min.js"></script>
<script src="/public/assets/js/uploadify/jquery.uploadify.min.js"></script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !$config['fastadmin']['multiplenav']): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <?php echo build_heading(null, false); ?>
        <ul class="nav nav-tabs">
            <?php if(is_array($app_type) || $app_type instanceof \think\Collection || $app_type instanceof \think\Paginator): $i = 0; $__LIST__ = $app_type;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <li <?php if($key == 0): ?> class="active" <?php endif; ?>><a href="#type_<?php echo $vo['id']; ?>" data-toggle="tab"><?php echo $vo['name']; ?></a></li>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
           <?php if(is_array($app_type) || $app_type instanceof \think\Collection || $app_type instanceof \think\Paginator): $i = 0; $__LIST__ = $app_type;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <div class="tab-pane fade <?php if($key == 0): ?> active in <?php endif; ?>" id="type_<?php echo $vo['id']; ?>" data-id="<?php echo $vo['id']; ?>">
              <form id="type_<?php echo $vo['id']; ?>_form" class="form-horizontal" method="POST" action="">
                 <div class="bootstrap-table">
                    <div class="fixed-table-container" style="padding-bottom: 0px;">
                        <div class="fixed-table-body">
                            <table id="type_<?php echo $vo['id']; ?>_table" class="table table-striped table-bordered table-hover" width="100%">
                                <thead>
                                <tr>
                                    <th style="text-align: center; vertical-align: middle; ">
                                        <div class="th-inner ">类目</div>
                                    </th>
                                    <th style="text-align: center; vertical-align: middle; ">
                                        <div class="th-inner ">技术选型及工期</div>
                                    </th>
                                </tr>
                                <tr id="tech_type1">
                                    <th style="text-align: center; vertical-align: middle; ">
                                        <div class="th-inner ">后端技术</div>
                                    </th>
                                    <td>
                                        <div class="bootstrap-table">
                                            <div class="fixed-table-container" style="padding-bottom: 0px;">
                                                <div class="fixed-table-body">
                                                    <table  class="table table-striped table-bordered table-hover" width="100%">
                                                        <thead>
                                                        <tr>
                                                            <th style="text-align: center; vertical-align: middle; ">
                                                                <div class="th-inner ">功能名称</div>
                                                            </th>
                                                         
                                                            <th style="text-align: center; vertical-align: middle; ">
                                                                <div class="th-inner ">技术选型</div>
                                                            </th>
                                                        </tr>
                                                        <?php if(is_array($gongnens) || $gongnens instanceof \think\Collection || $gongnens instanceof \think\Paginator): $i = 0; $__LIST__ = $gongnens;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$gn): $mod = ($i % 2 );++$i;
                                                            $list=db('bankuai_technology_select')->where(array('page_id'=>$page_id,'gid'=>$gn['id'],'type_id'=>$vo['id'],'tech_type'=>1))->find();
                                                            !empty($list)?$list['technology']=json_decode($list['technology'],true):'';
                                                            $data=db('gongnen')->where('id', $gn['gid'])->find();
														    $data_ch=db('gongnen_child')->where('id', $gn['child_id'])->find();
                                                           ?>
                                                         <tr class="gongnen">
                                                             <input type="hidden" name="id" value="<?php echo $list['id']; ?>">
                                                            <td style="text-align: center; vertical-align: middle;">
                                                                <input type="hidden" name="gid" value="<?php echo $gn['id']; ?>">
                                                                <?php echo $data['name']; ?>-<?php echo $data_ch['cname']; ?>
                                                            </td>
                                                         
                                                            <td style="text-align: center; vertical-align: middle;">

                                                                <div class="bootstrap-table">
                                                                    <div class="fixed-table-container" style="padding-bottom: 0px;">
                                                                        <div class="fixed-table-body">
                                                                            <table class="insert-tr table table-striped table-bordered table-hover onclick" width="100%">
                                                                                <thead>
                                                                                <tr>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">应用语言</div>
                                                                                    </th>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">工期（小时）</div>
                                                                                    </th>
                                                                                </tr>
                                                                              <?php if(!(empty($list['technology']) || (($list['technology'] instanceof \think\Collection || $list['technology'] instanceof \think\Paginator ) && $list['technology']->isEmpty()))): if(is_array($list['technology']) || $list['technology'] instanceof \think\Collection || $list['technology'] instanceof \think\Paginator): $i = 0; $__LIST__ = $list['technology'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
                                                                                <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <?php if(is_array($technology_language1) || $technology_language1 instanceof \think\Collection || $technology_language1 instanceof \think\Paginator): $i = 0; $__LIST__ = $technology_language1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$th): $mod = ($i % 2 );++$i;?>
                                                                                            <option value="<?php echo $th['id']; ?>" <?php if($th['id'] == $item[0]): ?>selected<?php endif; ?>><?php echo $th['name']; ?></option>
                                                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time" value="<?php echo $item[1]; ?>">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                <?php endforeach; endif; else: echo "" ;endif; else: 
																				    $list=db('technology_select')->where(array('gid'=>$gn['child_id'],'type_id'=>$vo['id'],'tech_type'=>1))->find();
                                                                                    !empty($list)?$list['technology']=json_decode($list['technology'],true):'';
																				 if(!(empty($list['technology']) || (($list['technology'] instanceof \think\Collection || $list['technology'] instanceof \think\Paginator ) && $list['technology']->isEmpty()))): if(is_array($list['technology']) || $list['technology'] instanceof \think\Collection || $list['technology'] instanceof \think\Paginator): $i = 0; $__LIST__ = $list['technology'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
                                                                                 <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <?php if(is_array($technology_language1) || $technology_language1 instanceof \think\Collection || $technology_language1 instanceof \think\Paginator): $i = 0; $__LIST__ = $technology_language1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$th): $mod = ($i % 2 );++$i;?>
                                                                                            <option value="<?php echo $th['id']; ?>" <?php if($th['id'] == $item[0]): ?>selected<?php endif; ?>><?php echo $th['name']; ?></option>
                                                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time" value="<?php echo $item[1]; ?>">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                 </tr>
                                                                                <?php endforeach; endif; else: echo "" ;endif; else: ?>	
																			    <tr class="technology_language">
                                                                                             <td style="text-align: center; vertical-align: middle;">
                                                                                                <select class="form-control" name="tid" >
                                                                                                    <option value="0">请选择</option>
                                                                                                    <?php if(is_array($technology_language1) || $technology_language1 instanceof \think\Collection || $technology_language1 instanceof \think\Paginator): $i = 0; $__LIST__ = $technology_language1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$th): $mod = ($i % 2 );++$i;?>
                                                                                                      <option value="<?php echo $th['id']; ?>"><?php echo $th['name']; ?></option>
                                                                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                                                </select>
                                                                                            </td>
                                                                                            <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                                <div class="col-xs-12 col-sm-8">
                                                                                                    <input class="form-control" type="number" name="time">
                                                                                                </div>
                                                                                                <div class="col-xs-12 col-sm-3">
                                                                                                    <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                                    <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                                </div>
                                                                                            </td>
                                                                                         </tr>
																		     <?php endif; endif; ?>
                                                                                </thead>
                                                                            </table>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                            </td>
                                                        </tr>
                                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                                        </thead>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr id="tech_type2">
                                    <th style="text-align: center; vertical-align: middle; ">
                                        <div class="th-inner ">页面制作技术</div>
                                    </th>
                                    <td>
                                        <div class="bootstrap-table">
                                            <div class="fixed-table-container" style="padding-bottom: 0px;">
                                                <div class="fixed-table-body">
                                                    <table  class="table table-striped table-bordered table-hover onclick" width="100%">
                                                        <thead class="select_box">
                                                        <tr>
                                                            <th style="text-align: center; vertical-align: middle; ">
                                                                <div class="th-inner ">终端版本</div>
                                                            </th>
                                                            <th style="text-align: center; vertical-align: middle; ">
                                                                <div class="th-inner ">功能类型</div>
                                                            </th>
                                                            <th style="text-align: center; vertical-align: middle; ">
                                                                <div class="th-inner ">技术选型</div>
                                                            </th>
                                                        </tr>

                                                  <?php if(!(empty($vo['list_2']) || (($vo['list_2'] instanceof \think\Collection || $vo['list_2'] instanceof \think\Paginator ) && $vo['list_2']->isEmpty()))): if(is_array($vo['list_2']) || $vo['list_2'] instanceof \think\Collection || $vo['list_2'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['list_2'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;$item['technology']=json_decode($item['technology'],true); ?>
                                                        <tr class="select_item">
                                                            <input type="hidden" name="id" value="<?php echo $item['id']; ?>">
                                                            <td style="text-align: center; vertical-align: middle;">
                                                                <select class="form-control" name="gid">
                                                                    <?php if(is_array($app_version) || $app_version instanceof \think\Collection || $app_version instanceof \think\Paginator): $i = 0; $__LIST__ = $app_version;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$version): $mod = ($i % 2 );++$i;?>
                                                                     <option value="<?php echo $version['id']; ?>" <?php if((!empty($item)) AND $version['id'] == $item['gid']): ?>selected<?php endif; ?>><?php echo $version['name']; ?></option>
                                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                </select>
                                                            </td>
                                                            <td style="text-align: center; vertical-align: middle;">
                                                                <select class="form-control" name="budget_id">
                                                                    <?php if(is_array($budget_manage2) || $budget_manage2 instanceof \think\Collection || $budget_manage2 instanceof \think\Paginator): $i = 0; $__LIST__ = $budget_manage2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$bu): $mod = ($i % 2 );++$i;?>
                                                                    <option value="<?php echo $bu['id']; ?>" <?php if((!empty($item)) AND $bu['id'] == $item['budget_id']): ?>selected<?php endif; ?>><?php echo $bu['name']; ?></option>
                                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                </select>
                                                            </td>
                                                            <td style="text-align: center; vertical-align: middle;">

                                                                <div class="bootstrap-table">
                                                                    <div class="fixed-table-container" style="padding-bottom: 0px;">
                                                                        <div class="fixed-table-body">
                                                                            <table class="insert-tr table table-striped table-bordered table-hover" width="100%">
                                                                                <thead>
                                                                                <tr>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">应用语言</div>
                                                                                    </th>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">工期（小时）</div>
                                                                                    </th>
                                                                                </tr>
                                                                              <?php if(!(empty($item['technology']) || (($item['technology'] instanceof \think\Collection || $item['technology'] instanceof \think\Paginator ) && $item['technology']->isEmpty()))): if(is_array($item['technology']) || $item['technology'] instanceof \think\Collection || $item['technology'] instanceof \think\Paginator): $i = 0; $__LIST__ = $item['technology'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ch_item): $mod = ($i % 2 );++$i;?>
                                                                                <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <?php if(is_array($technology_language2) || $technology_language2 instanceof \think\Collection || $technology_language2 instanceof \think\Paginator): $i = 0; $__LIST__ = $technology_language2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$th): $mod = ($i % 2 );++$i;?>
                                                                                            <option value="<?php echo $th['id']; ?>" <?php if($th['id'] == $ch_item[0]): ?>selected<?php endif; ?>><?php echo $th['name']; ?></option>
                                                                                            <?php endforeach; endif; else: echo "" ;endif; ?>

                                                                                            <option value="0" <?php if(0 == $ch_item[0]): ?>selected<?php endif; ?>>仿制</option>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time" value="<?php echo $ch_item[1]; ?>">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                <?php endforeach; endif; else: echo "" ;endif; else: ?>
                                                                                <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <?php if(is_array($technology_language2) || $technology_language2 instanceof \think\Collection || $technology_language2 instanceof \think\Paginator): $i = 0; $__LIST__ = $technology_language2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$th): $mod = ($i % 2 );++$i;?>
                                                                                            <option value="<?php echo $th['id']; ?>"><?php echo $th['name']; ?></option>
                                                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                    
                                                                                <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <option value="0">仿制</option>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                <?php endif; ?>

                                                                                </thead>
                                                                            </table>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                            </td>

                                                            <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                <div class="col-xs-12 col-sm-9">
                                                                    <a href="javascript:;" class="btn btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                    <a href="javascript:;" class="btn btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                      <?php endforeach; endif; else: echo "" ;endif; else: ?>
                                                        <tr class="select_item">
                                                            <input type="hidden" name="id" value="">
                                                            <td style="text-align: center; vertical-align: middle;">
                                                                <select class="form-control" name="gid">
                                                                    <?php if(is_array($app_version) || $app_version instanceof \think\Collection || $app_version instanceof \think\Paginator): $i = 0; $__LIST__ = $app_version;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$version): $mod = ($i % 2 );++$i;?>
                                                                    <option value="<?php echo $version['id']; ?>"><?php echo $version['name']; ?></option>
                                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                </select>
                                                            </td>
                                                            <td style="text-align: center; vertical-align: middle;">
                                                                <select class="form-control" name="budget_id">
                                                                    <?php if(is_array($budget_manage2) || $budget_manage2 instanceof \think\Collection || $budget_manage2 instanceof \think\Paginator): $i = 0; $__LIST__ = $budget_manage2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$bu): $mod = ($i % 2 );++$i;?>
                                                                    <option value="<?php echo $bu['id']; ?>"><?php echo $bu['name']; ?></option>
                                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                </select>
                                                            </td>
                                                            <td style="text-align: center; vertical-align: middle;">

                                                                <div class="bootstrap-table">
                                                                    <div class="fixed-table-container" style="padding-bottom: 0px;">
                                                                        <div class="fixed-table-body">
                                                                            <table class="insert-tr table table-striped table-bordered table-hover onclick" width="100%">
                                                                                <thead>
                                                                                <tr>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">应用语言</div>
                                                                                    </th>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">工期（小时）</div>
                                                                                    </th>
                                                                                </tr>

                                                                                <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <?php if(is_array($technology_language2) || $technology_language2 instanceof \think\Collection || $technology_language2 instanceof \think\Paginator): $i = 0; $__LIST__ = $technology_language2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$th): $mod = ($i % 2 );++$i;?>
                                                                                            <option value="<?php echo $th['id']; ?>"><?php echo $th['name']; ?></option>
                                                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
																			   <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <option value="0">仿制</option>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                </thead>
                                                                            </table>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                            </td>

                                                            <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                <div class="col-xs-12 col-sm-9">
                                                                    <a href="javascript:;" class="btn btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                    <a href="javascript:;" class="btn btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                  <?php endif; ?>
                                                        </thead>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr id="tech_type3">
                                    <th style="text-align: center; vertical-align: middle; ">
                                        <div class="th-inner ">ui设计技术</div>
                                    </th>
                                    <td>
                                        <div class="bootstrap-table">
                                            <div class="fixed-table-container" style="padding-bottom: 0px;">
                                                <div class="fixed-table-body">
                                                    <table  class="table table-striped table-bordered table-hover onclick" width="100%">
                                                       <thead class="select_box">
                                                        <tr>
                                                            <th style="text-align: center; vertical-align: middle; ">
                                                                <div class="th-inner ">终端版本</div>
                                                            </th>
                                                            <th style="text-align: center; vertical-align: middle; ">
                                                                <div class="th-inner ">功能类型</div>
                                                            </th>
                                                            <th style="text-align: center; vertical-align: middle; ">
                                                                <div class="th-inner ">技术选型</div>
                                                            </th>
                                                        </tr>
                                                  <?php if(!(empty($vo['list_3']) || (($vo['list_3'] instanceof \think\Collection || $vo['list_3'] instanceof \think\Paginator ) && $vo['list_3']->isEmpty()))): if(is_array($vo['list_3']) || $vo['list_3'] instanceof \think\Collection || $vo['list_3'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['list_3'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;$item['technology']=json_decode($item['technology'],true); ?>
                                                         <tr class="select_item">
                                                            <input type="hidden" name="id" value="<?php echo $item['id']; ?>">
                                                            <td style="text-align: center; vertical-align: middle;">
                                                                <select class="form-control" name="gid">
                                                                    <?php if(is_array($app_version) || $app_version instanceof \think\Collection || $app_version instanceof \think\Paginator): $i = 0; $__LIST__ = $app_version;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$version): $mod = ($i % 2 );++$i;?>
                                                                    <option value="<?php echo $version['id']; ?>" <?php if((!empty($item)) AND $version['id'] == $item['gid']): ?>selected<?php endif; ?>><?php echo $version['name']; ?></option>
                                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                </select>
                                                            </td>
                                                            <td style="text-align: center; vertical-align: middle;">
                                                                <select class="form-control" name="budget_id">
                                                                    <?php if(is_array($budget_manage3) || $budget_manage3 instanceof \think\Collection || $budget_manage3 instanceof \think\Paginator): $i = 0; $__LIST__ = $budget_manage3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$bu): $mod = ($i % 2 );++$i;?>
                                                                    <option value="<?php echo $bu['id']; ?>" <?php if((!empty($item)) AND $bu['id'] == $item['budget_id']): ?>selected<?php endif; ?>><?php echo $bu['name']; ?></option>
                                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                </select>
                                                            </td>
                                                            <td style="text-align: center; vertical-align: middle;">

                                                                <div class="bootstrap-table">
                                                                    <div class="fixed-table-container" style="padding-bottom: 0px;">
                                                                        <div class="fixed-table-body">
                                                                            <table class="insert-tr table table-striped table-bordered table-hover" width="100%">
                                                                                <thead>
                                                                                <tr>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">应用语言</div>
                                                                                    </th>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">工期（小时）</div>
                                                                                    </th>
                                                                                </tr>
                                                                                <?php if(!(empty($item['technology']) || (($item['technology'] instanceof \think\Collection || $item['technology'] instanceof \think\Paginator ) && $item['technology']->isEmpty()))): if(is_array($item['technology']) || $item['technology'] instanceof \think\Collection || $item['technology'] instanceof \think\Paginator): $i = 0; $__LIST__ = $item['technology'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ch_item): $mod = ($i % 2 );++$i;?>
                                                                                <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <?php if(is_array($technology_language3) || $technology_language3 instanceof \think\Collection || $technology_language3 instanceof \think\Paginator): $i = 0; $__LIST__ = $technology_language3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$th): $mod = ($i % 2 );++$i;?>
                                                                                            <option value="<?php echo $th['id']; ?>" <?php if($th['id'] == $ch_item[0]): ?>selected<?php endif; ?>><?php echo $th['name']; ?></option>
                                                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time" value="<?php echo $ch_item[1]; ?>">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                <?php endforeach; endif; else: echo "" ;endif; else: ?>
                                                                                <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <?php if(is_array($technology_language3) || $technology_language3 instanceof \think\Collection || $technology_language3 instanceof \think\Paginator): $i = 0; $__LIST__ = $technology_language3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$th): $mod = ($i % 2 );++$i;?>
                                                                                            <option value="<?php echo $th['id']; ?>"><?php echo $th['name']; ?></option>
                                                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                <?php endif; ?>
                                                                                </thead>
                                                                            </table>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                            </td>

                                                            <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                <div class="col-xs-12 col-sm-9">
                                                                    <a href="javascript:;" class="btn btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                    <a href="javascript:;" class="btn btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                     <?php endforeach; endif; else: echo "" ;endif; else: ?>
                                                         <tr class="select_item">
                                                            <input type="hidden" name="id" value="">
                                                            <td style="text-align: center; vertical-align: middle;">
                                                                <select class="form-control" name="gid">
                                                                    <?php if(is_array($app_version) || $app_version instanceof \think\Collection || $app_version instanceof \think\Paginator): $i = 0; $__LIST__ = $app_version;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$version): $mod = ($i % 2 );++$i;?>
                                                                    <option value="<?php echo $version['id']; ?>"><?php echo $version['name']; ?></option>
                                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                </select>
                                                            </td>
                                                            <td style="text-align: center; vertical-align: middle;">
                                                                <select class="form-control" name="budget_id">
                                                                    <?php if(is_array($budget_manage3) || $budget_manage3 instanceof \think\Collection || $budget_manage3 instanceof \think\Paginator): $i = 0; $__LIST__ = $budget_manage3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$bu): $mod = ($i % 2 );++$i;?>
                                                                    <option value="<?php echo $bu['id']; ?>"><?php echo $bu['name']; ?></option>
                                                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                </select>
                                                            </td>
                                                            <td style="text-align: center; vertical-align: middle;">

                                                                <div class="bootstrap-table">
                                                                    <div class="fixed-table-container" style="padding-bottom: 0px;">
                                                                        <div class="fixed-table-body">
                                                                            <table class="insert-tr table table-striped table-bordered table-hover onclick" width="100%">
                                                                                <thead>
                                                                                <tr>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">应用语言</div>
                                                                                    </th>
                                                                                    <th style="text-align: center; vertical-align: middle; ">
                                                                                        <div class="th-inner ">工期（小时）</div>
                                                                                    </th>
                                                                                </tr>

                                                                                <tr class="technology_language">
                                                                                    <td style="text-align: center; vertical-align: middle;">
                                                                                        <select class="form-control" name="tid" >
                                                                                            <?php if(is_array($technology_language3) || $technology_language3 instanceof \think\Collection || $technology_language3 instanceof \think\Paginator): $i = 0; $__LIST__ = $technology_language3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$th): $mod = ($i % 2 );++$i;?>
                                                                                            <option value="<?php echo $th['id']; ?>"><?php echo $th['name']; ?></option>
                                                                                            <?php endforeach; endif; else: echo "" ;endif; ?>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                                        <div class="col-xs-12 col-sm-8">
                                                                                            <input class="form-control" type="number" name="time">
                                                                                        </div>
                                                                                        <div class="col-xs-12 col-sm-3">
                                                                                            <a href="javascript:;" class="btn my-btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                                            <a href="javascript:;" class="btn my-btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                                        </div>
                                                                                    </td>
                                                                                </tr>
                                                                                </thead>
                                                                            </table>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                            </td>

                                                            <td class="copy" style="text-align: center; vertical-align: middle;">
                                                                <div class="col-xs-12 col-sm-9">
                                                                    <a href="javascript:;" class="btn btn-add btn-success"><i class="fa fa-plus"></i></a>
                                                                    <a href="javascript:;" class="btn btn-del btn-danger"><i class="fa fa-trash"></i></a>
                                                                </div>
                                                            </td>
                                                        </tr>
                                                  <?php endif; ?>
                                                        </thead>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>

                                </thead>
                            </table>
                            <div style="text-align:center;margin-top: 15px;">
                                <span class="btn btn-success submit">保存</span>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
            </div>
        <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
</div>
<script>
    $(function(){
        $(".submit").click(function(){
            var arrs=new Array();
            var page_id="<?php echo $page_id; ?>";
            for(var i=1;i<=3;i++) {
			  var type_box=$(".active.in").find("#tech_type"+i);
			  if(i==1){
			     var gongnens=type_box.find(".gongnen"); 			 
				 for(var j=0;j<gongnens.length; j++){
				       var gongnen= $(gongnens[j]);
				       var cheklist=gongnen.find(".technology_language");
					   var items = new Array();
					   for (var k = 0; k < cheklist.length; k++) {
                         var child_box=$(cheklist[k]);
                         var tid=child_box.find("[name=tid]").val();
                         var time=child_box.find("input[name=time]").val();
                         var item=[tid,time];
                         items.push(item);
                      } 
				
					   var technology=JSON.stringify( items );
                       var type_id=$(".active.in").attr('data-id');
                       var gid=gongnen.find("[name=gid]").val();
                       var tech_type=i;
                       var budget_id=gongnen.find("[name=budget_id]").val();
                       var id=gongnen.find("input[name=id]").val();
                       var arr= {id:id,type_id:type_id,gid: gid, page_id:page_id,tech_type:tech_type,budget_id:budget_id,technology:technology,};
                       arrs.push(arr);
				 }	
			  }else{
                   var select_list=type_box.find(".select_item");
                   for(var j=0;j<select_list.length; j++){
                      var select_item= $(select_list[j]);
                      var items = new Array();
                      var cheklist=select_item.find(".technology_language");
                      for (var n = 0; n < cheklist.length; n++) {
                          var child_box=$(cheklist[n]);
                          var tid=child_box.find("[name=tid]").val();
                          var time=child_box.find("input[name=time]").val();
                          var item=[tid,time];
                          items.push(item);
                      }
                      var technology=JSON.stringify( items );
                      var type_id=$(".active.in").attr('data-id');
                      var gid=select_list.find("[name=gid]").val();
                      var tech_type=i;
                      var id=select_list.find("input[name=id]").val();
                      var arr= {id:id,type_id:type_id,gid: gid,page_id:page_id,tech_type:tech_type,technology:technology,};
                      arrs.push(arr);
                  }
			  }
              
            }

            $.ajax({
                type:'POST',
                data:{
                    arrs:JSON.stringify( arrs ),
                },
                url:"<?php echo url('jsave'); ?>",
                traditional: true,
                success:function(data){
                    if(data.code==1){
                        alert(data.msg);
                        window.location.reload();
                    }else{
                        alert(data.msg);
                    }
                }
            });
            return false;
        });

    })
</script>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
<script src="/public/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/public/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>